/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.yonsei.iwb.smarttv.model.measure;

import com.hp.hpl.jena.rdf.model.Property;
import com.hp.hpl.jena.rdf.model.Resource;

/**
 *
 * @author Johannes Sohn
 */
public class PropertyWeight {
    private Resource domain;
    private Property property;
    private Resource range;
    private double weight;

    public PropertyWeight(Resource domain, Property property, Resource range, double weight){
        this.domain = domain;
        this.property = property;
        this.range = range;
        this.weight = weight;
    }

    public void setSubject(Resource subject){
        this.domain = subject;
    }
    public void setProperty(Property property){
        this.property = property;
    }
     public void setObject(Resource object){ 
        this.range = domain;
    }
     public void setWeight(double weight){
         this.weight = weight;
     }

     public Resource getDomain(){
         return this.domain;
     }

     public Property getProperty(){
         return this.property;
     }

     public Resource getRange(){
         return this.range;
     }
     public double getWeight(){
         return this.weight;
     }

    @Override
     public String toString(){
         String s = new String();

         s = s+this.domain +"->"+ this.property +" "+ this.range +"->"+ this.weight;

         return s;
     }


}
